<template>
  <div>
    haha
    <!-- 定义路由展现页面-->
    <!-- 添加子路由导航 -->
    <van-card
        num="2"
        price="2.00"
        desc="描述信息"
        title="商品标题"
        thumb="https://img01.yzcdn.cn/vant/ipad.jpeg"
    >
      <template #tags>
        <van-tag plain type="danger">标签</van-tag>
        <van-tag plain type="danger">标签</van-tag>
      </template>
      <template #footer>
        <van-button size="mini">按钮</van-button>
        <van-button size="mini">按钮</van-button>
      </template>
    </van-card>
    <p>导航 ：
      <router-link to="/user/add">-添加用户</router-link> |
      <router-link to="/user/login">-登录</router-link>
    </p>
    <!-- 子页面展示部分 -->
    <router-view/>
  </div>

</template>

<script>
export default {
  name: "User",
  created() {
    this.$store.commit('setname','jx')
  }
}
</script>

<style>

</style>
